package com.jiangyg.mall.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 类描述：订单项信息
 * 
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 22:14:52
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mo_order_item")
public class OrderItem implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@TableField("id")
	private Long id;

	/**
	 * 订单号
	 */
	@TableField("order_id")
	private Long orderId;

	/**
	 * spu_id
	 */
	@TableField("spu_id")
	private Long spuId;

	/**
	 * spu_name
	 */
	@TableField("spu_name")
	private String spuName;

	/**
	 * 品牌ID
	 */
	@TableField("brand_id")
	private Long brandId;

	/**
	 * 商品分类ID
	 */
	@TableField("category_id")
	private Long categoryId;

	/**
	 * 商品sku编号
	 */
	@TableField("sku_id")
	private Long skuId;

	/**
	 * 商品sku名字
	 */
	@TableField("sku_name")
	private String skuName;

	/**
	 * 商品sku图片
	 */
	@TableField("sku_image")
	private String skuImage;

	/**
	 * 商品sku价格
	 */
	@TableField("sku_price")
	private BigDecimal skuPrice;

	/**
	 * 商品购买的数量
	 */
	@TableField("sku_quantity")
	private Integer skuQuantity;

	/**
	 * 商品销售属性组合（JSON）
	 */
	@TableField("sku_attrs_vals")
	private String skuAttrsVals;

	/**
	 * 商品促销分解金额
	 */
	@TableField("promotion_amount")
	private BigDecimal promotionAmount;

	/**
	 * 优惠券优惠分解金额
	 */
	@TableField("coupon_amount")
	private BigDecimal couponAmount;

	/**
	 * 积分优惠分解金额
	 */
	@TableField("integration_amount")
	private BigDecimal integrationAmount;

	/**
	 * 该商品经过优惠后的分解金额
	 */
	@TableField("real_amount")
	private BigDecimal realAmount;

	/**
	 * 赠送积分
	 */
	@TableField("gift_integration")
	private Integer giftIntegration;

	/**
	 * 赠送成长值
	 */
	@TableField("gift_growth")
	private Integer giftGrowth;

}
